﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCode.Project.Domain.Message.Act.Report2301
{
    ///<summary>
    ///会员剩余服务次数的表,每天固化一次数据
    ///</summary>
  
    public partial class RpMemberServiceInv
    {
        public RpMemberServiceInv()
        {


        }
        /// <summary>
        /// Desc:
        /// Default:
        /// Nullable:False
        /// </summary>           
      
        public long Id { get; set; }

        /// <summary>
        /// MSSQL的主键ID
        /// </summary>
        public Guid? KeyId { get; set; }
        /// <summary>
        /// Desc:会员
        /// Default:NULL
        /// Nullable:True
        /// </summary>           
     
        public string MemberId { get; set; }

        /// <summary>
        /// Desc:服务
        /// Default:NULL
        /// Nullable:True
        /// </summary>           
      
        public string ServiceId { get; set; }

        /// <summary>
        /// Desc:服务所对应的加盟商如果为空，则为公司的
        /// Default:NULL
        /// Nullable:True
        /// </summary>           
       
        public string CustomerId { get; set; }

        /// <summary>
        /// Desc:购买服务时来自哪个门店
        /// Default:NULL
        /// Nullable:True
        /// </summary>           
     
        public string ShopId { get; set; }

        /// <summary>
        /// Desc:购买的次数
        /// Default:NULL
        /// Nullable:True
        /// </summary>           
       
        public int? TotalQty { get; set; }

        /// <summary>
        /// Desc:剩余次数
        /// Default:NULL
        /// Nullable:True
        /// </summary>           
      
        public int? Qty { get; set; }

        /// <summary>
        /// Desc:购买时的金额
        /// Default:NULL
        /// Nullable:True
        /// </summary>           
    
        public decimal? Amount { get; set; }

        /// <summary>
        /// Desc:到期时间null为不限
        /// Default:NULL
        /// Nullable:True
        /// </summary>           
     
        public DateTime? EndTime { get; set; }

        /// <summary>
        /// Desc:是否删除。1=删除；0=没删除。
        /// Default:NULL
        /// Nullable:True
        /// </summary>           
       
        public int? IsDeleted { get; set; }

        /// <summary>
        /// Desc:创建人
        /// Default:NULL
        /// Nullable:True
        /// </summary>           
      
        public string Creater { get; set; }

        /// <summary>
        /// Desc:编辑人
        /// Default:NULL
        /// Nullable:True
        /// </summary>           
      
        public string Editor { get; set; }

        /// <summary>
        /// Desc:创建时间
        /// Default:NULL
        /// Nullable:True
        /// </summary>           
       
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// Desc:备注
        /// Default:NULL
        /// Nullable:True
        /// </summary>           
       
        public string Note { get; set; }

        /// <summary>
        /// Desc:项目类型。0=商品；1=服务；2=套餐,3=卡券 , 4=自定义套餐
        /// Default:NULL
        /// Nullable:True
        /// </summary>           
      
        public int? ItemType { get; set; }

        /// <summary>
        /// Desc:编辑时间
        /// Default:NULL
        /// Nullable:True
        /// </summary>           
      
        public DateTime? EditTime { get; set; }

        /// <summary>
        /// Desc:固化的日期
        /// Default:NULL
        /// Nullable:True
        /// </summary>           
       
        public DateTime? Days { get; set; }

        /// <summary>
        /// Desc:写入数据库的时间，小于当天的要删除
        /// Default:NULL
        /// Nullable:True
        /// </summary>           
       
        public DateTime? AddTime { get; set; }

        public string BookId { get; set; }

    }
}
